<%@ page import="entity.Major" %>
<%@ page import="dao.MajorDao" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<jsp:useBean class="entity.Major" id="obj">
  <jsp:setProperty name="obj"   property="*" />
</jsp:useBean>

<%
    if( new MajorDao().update(obj)>0){
      response.sendRedirect("major.jsp");
    }else
    {
      out.println("保存失败!");
    }


%>
